<%@page import="com.mmy.domain.hotel.THotelBase"%>
<%@page import="com.mmy.domain.hotel.VHotelBase"%>
<%@page import="com.mmy.domain.hotel.THotelPlan"%>
<%@page import="com.mmy.domain.hotel.VHotelPlan"%>
<%@page import="com.mmy.domain.hotel.THotelRoom"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>酒店计划信息</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>酒店计划信息</h2>			
		</div>
	</header>
	<section class="container">
	

			<nav class="breadcrumb" >
				<a href="hotelindex" >酒店基本信息</a> |
						<a href="hotelplan" >酒店计划</a> 
				<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3></hr>
			</nav>
				<div class="information" >
					
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i><label>酒店计划单信息管理</label>
						</h4>
						<div class="input-container">
						
							<div class="select-condition">
								
							<form action="searchhotelplan" class="info-form" >
							<span> <label for="HotelName">酒店名称：</label></span>
							<select class="input-select-vlign" id="HotelName" name="HotelID" >
							<option value="">不限</option>
							<c:forEach var="lstHotelBase" items="${newLstHotelBase}">
								<option value="${lstHotelBase.getHotelID()}">${lstHotelBase.getHotelName()}</option>
							</c:forEach>	
						</select>
						<span> <label for="RoomName">房间名称：</label></span>
							<select class="input-select-vlign" id="RoomName" name="RoomID" >
							<option value="">不限</option>
							<c:forEach var="lstHotelRoom" items="${newLstHotelRoom}">
								<option value="${lstHotelRoom.getRoomID()}">${lstHotelRoom.getRoomName()}</option>
							</c:forEach>	
						</select>
							<input type="submit" value="搜索" class="btn"/>
							
								<div class="at-float-right">
							<input type="button" class="btn" value="新建" onclick="location.href='/mmy/tocreatehotelplan'"/>
							<input type="button" class="btn" value="修改"  onclick="updateHotelPlan()"/>
							<input type="button" class="btn"  value="删除" onclick="delHotelPlanBatch()"/>
							</div>
							</form>	
								</div>
				<table class="info-table" >
					<tr>
						<th>
							<input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">
						</th>
						
						<th>服务标准</th>
						<th>酒店名称</th>
						<th>房间名称</th>
						<th>开始日期</th>			
						<th>结束日期</th>			
						<th>数量</th>			
						<th>备注</th>			
					
					</tr>
					<c:forEach var="hotelPlanList" items="${newHotelPlanList}">
					<tr>
						<td>
							<input type="checkbox" name="ckone" value="${hotelPlanList.getPlanID()}" onclick="ckOne(this)">
						</td>
						<td><a href = "hotelplaninfo?iPlanID=${hotelPlanList.getPlanID()}">${hotelPlanList.getService()}</a> </td>
						<td>${hotelPlanList.getHotelName()}</td>
						<td>${hotelPlanList.getRoomName()}</td>
						<td>
						<fmt:formatDate value='${hotelPlanList.getStartDate()}' pattern='yyyy-MM-dd'/>
						</td>
						<td>
						<fmt:formatDate value='${hotelPlanList.getEndDate()}' pattern='yyyy-MM-dd'/>
						</td>
						<td>${hotelPlanList.getNumber()}</td>
						<td>${hotelPlanList.getMemo()}</td>
					</tr>
				</c:forEach>
					
				</table>
				<select>
								<option>10</option>
								<option>5</option>
								<option>2</option>
							</select>
							<span>
								 条   共1条 1/1
							</span>
							<span class="page-span">
								1 转到<input type="text" class="input-width3"/>
								页 <input type="button" class="btn" value="GO"  />
							</span>	
				</div>
				
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>